<div id="menu-left" class="column-left">
    <?php foreach($this->categories as $category): ?>
    <a href="/products/show-product-category/category-id/<?php echo $category['catalog_id'] ?>" 
       category-id="<?php echo $category['catalog_id'] ?>" class="categories<?php echo ((int)$category['catalog_id'] == (int)$this->categoryId ? ' current' : '') ?>">
        <div>
        <?php echo $category['name'] ?>
        </div>
    </a>
    <?php if(count($category['childs']) > 0): ?>
    <ul class="categories-childs" id="categories-childs-<?php echo $category['catalog_id'] ?>" 
        style="display: none">
        <?php foreach ($category['childs'] as $categoryChild): ?>
        <li class="<?php echo ((int)$categoryChild['catalog_id'] == (int)$this->categoryId ? 'current' : '') ?>"><a href="/products/show-product-category/category-id/<?php echo $categoryChild['catalog_id'] ?>"><?php echo $categoryChild['name'] ?></a></li>
        <?php endforeach; ?>
    </ul>
    <?php endif; ?>
    <?php endforeach; ?>
</div>